package com.platform.modules.wallet.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.platform.modules.wallet.enums.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 红包子（领取）表
 * </p>
 */
@Data
@TableName("wallet_red_packet_sub")
@Accessors(chain = true) // 链式调用
public class WalletRedPacketSub extends Model<WalletRedPacketSub> {
    /**
     * 主键
     */
    @TableId
    private Long id;

    private Long RedPacketId;

    private Integer amount;

    private RedPacketSubStatusEnum status;

    private RedPacketSubInEnum inStatus;

    private RedPacketLuckEnum bestLuck;

    private Long fromId;
    private Long toId;
    
    private Date createTime;
    private Date successTime;
    private Date receiveTime;
    private Date updateTime;
    private Date refundTime;
    private Date refundableTime;
}
